-- GENERATED SPELL FOR [Bloodcursed Naga] --


function spell0_17713(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_17713', 0, 1)
end

function spell1_17713(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17713', 7000, 1)
end

function Sorts_17713(pUnit, Event)
local choix_sorts_17713 = math.random(0, 1)
if choix_sorts_17713 == 0 then
pUnit:RegisterEvent('spell0_17713', 1, 1)
end
if choix_sorts_17713 == 1 then
pUnit:RegisterEvent('spell1_17713', 1, 1)
end
end

function mob17713_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17713', math.random(1500, 3000), 1)
end

function mob17713_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17713_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17713_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17713, 1, 'mob17713_Action')
RegisterUnitEvent(17713, 2, 'mob17713_Leave')
RegisterUnitEvent(17713, 3, 'mob17713_Kill')
RegisterUnitEvent(17713, 4, 'mob17713_Die')
